<!DOCTYPE html>
<html lang="zh">
<head>
    {include file="Public/header"}
    <link rel="stylesheet" href="__STATIC__/layout/css/gyq.css">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>
<body style="color:#333;padding:3px;" class="x_sorll">
<div class="ibox">
    <div class="ibox-title">
        <h1>{$data.title}</h1>
    </div>
    <div class="ibox-content">
        {$data.content}
    </div>
</div>
</body>
{include file="Public/footer"}
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script>
    $('.emptyIf').on('click',function () {
        $(this).closest('form').find('input[type=text]').val('')
        $(this).closest('form').find('select').val('')
        $(this).closest('form').submit()

    })

    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY-MM-DD 00:00:00',
        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end = {
        elem: '#end',
        format: 'YYYY-MM-DD 23:59:60',
        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
</script>
</html>